package shiro.authc.sys.mapper;

import org.apache.ibatis.annotations.Param;
import shiro.authc.sys.entity.Permission;

import java.util.List;

public interface PermissionMapper
{
	int deleteByPrimaryKey(Long id);

	int insert(Permission record);

	int insertSelective(Permission record);

	Permission selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Permission record);

	int updateByPrimaryKey(Permission record);

	List<Permission> selectUserPermission(@Param("userId") Long userId);
}